package com.service.impl;

/**
 * @description: 字符串转换
 * @projectName:Lambda
 * @see:com.service.impl
 * @author:LXC
 * @createTime:2024/4/15 11:08
 * @version:1.0
 */
public class StringConvert {

    public static String stringConvert(String str){
        String result = "";
        int i;

        for (i=str.length()-1; i >=0 ; i--) {
            result += str.charAt(i);
        }
        return result;
    }

    public  String toPower(String str){
        String result = "";
        int i;

        for (i=str.length()-1; i >=0 ; i--) {
            result += str.charAt(i);
        }
        return result.toUpperCase();
    }
}
